package com.android.happymall.model.group;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by lnest-php on 2017/9/9.
 */

public class DirectBuyGoodsList {

    /**
     * list : [{"id":"441","name":"口水鱼香辣味15g*20/盒 小鱼仔小鱼干 新老包装交替中","price":"30.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/images/gallery/l/b/768_src.jpg"},{"id":"467","name":"春节特享 海鲜盛宴(Ocean Gala) 熟冻智利帝王蟹 1500g 礼盒装","price":"399.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/1/images/gallery/r/j/992_src.jpg"},{"id":"458","name":"树懒果园 新西兰佳沛绿奇异果 16个 1.5-1.8kg 新鲜猕猴桃 进口水果","price":"120.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/1/images/gallery/q/j/956_src.jpg"},{"id":"431","name":"树懒果园 智利进口新鲜蓝莓 4盒 500g 鲜果现货 空运新鲜水果","price":"118.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/images/gallery/j/a/695_src.jpg"},{"id":"459","name":"年货坚果礼盒 零食大礼包 9包组合果宴礼1468g ","price":"150.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/1/images/gallery/q/s/965_src.jpg"},{"id":"466","name":"春节年货 新鲜草莓水果现摘红霞奶油巧克力草莓红颜草莓 1kg 礼盒装","price":"120.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/1/images/gallery/s/f/1024_src.jpg"},{"id":"430","name":"大派山 越南大青芒 新鲜水果 大芒果 2.5kg 单果250克以上","price":"69.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/images/gallery/j/2/687_src.jpg"},{"id":"429","name":"美果汇 现货首发进口车厘子2斤装22-26mm小果小果口感微酸 介意慎拍 女神樱桃 ","price":"148.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/images/gallery/i/u/679_src.jpg"},{"id":"427","name":"珍享 澳洲进口脐橙/澳橙 12个 单果约200-220g 自营水果","price":"42.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/images/gallery/i/f/664_src.jpg"},{"id":"462","name":"海鲜盛宴(Ocean Gala) 熟冻智利帝王蟹 1500g 礼盒装","price":"399.00","score":"0","thumb":"https://jingpai.lnest.cc/upload/1/images/gallery/r/j/992_src.jpg"}]
     * list_total : 63
     * flag : true
     * code : 0
     * msg : 操作成功
     * data : null
     * time : 1504856252
     */

    private boolean flag;
    private int code;
    private String msg;
    private Object data;
    private int time;
    private List<ListBean> list;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements MultiItemEntity {

        public static final int ONE = 0;
        public static final int DOUBLE = 1;
        public static final int THREE = 3;
        private int itemType;

        @Override
        public int getItemType() {
            return itemType;
        }
        /**
         * id : 441
         * name : 口水鱼香辣味15g*20/盒 小鱼仔小鱼干 新老包装交替中
         * price : 30.00
         * score : 0
         * thumb : https://jingpai.lnest.cc/upload/images/gallery/l/b/768_src.jpg
         */
        public ListBean(int itemType, String id, String name, String price, String score, String thumb) {
            this.itemType = itemType;
            this.id = id;
            this.name = name;
            this.price = price;
            this.score = score;
            this.thumb = thumb;
        }

        private String id;
        private String name;
        private String price;
        private String score;
        private String thumb;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getScore() {
            return score;
        }

        public void setScore(String score) {
            this.score = score;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }
    }
}
